#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/init.h>
#include "calculation.h"


static int __init calculation_init(void)
{
	printk(KERN_ALERT "calculation  init!\n");
	printk(KERN_ALERT "itype+1 = %d, itype-1 = %d\n", my_add(itype,1), my_sub(itype,1));

	printk(KERN_ALERT "get extern itype=%d\n", itype);
	printk(KERN_ALERT "get extern btype=%d\n", btype);
	printk(KERN_ALERT "get extern ctype=%d\n", ctype);
	printk(KERN_ALERT "get extern stype=%s\n", stype);
	return 0;
}

static void __exit calculation_exit(void)
{
	printk(KERN_ALERT "calculation  exit!\n");
}

module_init(calculation_init);
module_exit(calculation_exit);


MODULE_LICENSE("GPL2");
MODULE_AUTHOR("embedfire ");
MODULE_DESCRIPTION("calculation module");
MODULE_ALIAS("calculation_module");
